
import {showHelloWorld,showHelloWorld2} from '@/js/common'
import {abc,abcd} from '@/js/common2'
import 'css/reset.css'
import 'css/rem.scss'
import aaa from '../img/8888.jpg'
import Vue from 'vue'
import aaa1 from './1'
import bbbb from './1'
import ViewUI from 'view-design';
import getComponent from './lazy-loading'
import 'view-design/dist/styles/iview.css';
import echart from "echart"

var img  = document.createElement("img")

img.src = aaa

document.body.appendChild(img)

console.log(echart)

const aaaaaaaaaaaaaa  = ()=>{
    const a = 8
    const b = 9

    const c = a+b;

    // 4546546544564
    // alert(c)
    console.log(333333,c,a,b)

    showHelloWorld(4)
    showHelloWorld2(44)
    abc(2)
    abcd(2)
    
    
    const bbbbbbbbbbb  = ()=>{
        // alert(c)
        console.log(333333,c,a,b)
    }

    console.warn("不行打卡啦加东方喀什")
    
    setTimeout(()=>{
        bbbbbbbbbbb()
    })
}
aaaaaaaaaaaaaa()

Vue.use(ViewUI);
var app = new Vue({
    el: '#app',
    data: {
      message: 'Hello Vue!'
    }
})

$("body").html("<h1>hello world</h1>")

// 按需加载，当点击了页面，才会引入lodash，也是单页应用路由懒加载的实现原理
window.addEventListener("click", function() {
    getComponent().then(component => {
      console.log("compoent",component)
      alert(1)
      document.body.appendChild(component);
    });
});
  